package com.mxpio.erp.common.mes.entity;

import com.mxpioframework.jpa.annotation.DictAble;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
@Entity
@Table(name = "V_MB_ERP_MES_AOI_DAY_TWO_HOURS_SUM")
@Schema(description="aoi按天每两小时合计检测量")
@NoArgsConstructor
@AllArgsConstructor
public class VAoiDayTwoHoursSum implements DictAble, Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")
	@Schema(description = "id")
	private String id;

	@Column(name = "EXECUTE_DAY_")
	@Schema(description = "生产日期")
	private String executeDay;

	@Column(name = "02clock")
	@Schema(description = "2点合计")
	private String clock02;

	@Column(name = "04clock")
	@Schema(description = "4点合计")
	private String clock04;
	@Column(name = "06clock")
	@Schema(description = "6点合计")
	private String clock06;
	@Column(name = "08clock")
	@Schema(description = "8点合计")
	private String clock08;
	@Column(name = "10clock")
	@Schema(description = "10点合计")
	private String clock10;
	@Column(name = "12clock")
	@Schema(description = "12点合计")
	private String clock12;
	@Column(name = "14clock")
	@Schema(description = "14点合计")
	private String clock14;
	@Column(name = "16clock")
	@Schema(description = "16点合计")
	private String clock16;
	@Column(name = "18clock")
	@Schema(description = "18点合计")
	private String clock18;
	@Column(name = "20clock")
	@Schema(description = "20点合计")
	private String clock20;
	@Column(name = "22clock")
	@Schema(description = "22点合计")
	private String clock22;
	@Column(name = "24clock")
	@Schema(description = "24点合计")
	private String clock24;
	@Transient
	private Map<String, String> textMap;

	public String putText(String key, String value) {
		if (textMap == null) {
			textMap = new HashMap<>();
		}
		return textMap.put(key, value);
	}

}
